# encoding=utf-8
from sqlalchemy_serializer import SerializerMixin

from app import dBSession
from app.Models.BaseModel import BaseModel
from app.Models.Model import SeasonsModel
from app.Vendor.Utils import Utils


class Seasons(SeasonsModel, BaseModel, SerializerMixin):

    @staticmethod
    def get_season_list():
        players = dBSession.query(Seasons).all()
        return Utils.db_l_to_d(players)
